interface GoodsItem {
    id: string,
    title: string,
    desc: string
}

export function getGoodsList(): Promise<GoodsItem[]> {
    return new Promise((resolve, reject) => {
        setTimeout(() => {
            const list: GoodsItem[] = [
                {id:'1',title:'商品1',desc:'商品1'},
                {id:'2',title:'商品2',desc:'商品2'},
                {id:'3',title:'商品3',desc:'商品3'},
                {id:'4',title:'商品4',desc:'商品4'}
            ]
            resolve(list)
        }, 1000)
    })
}